<template>
	<view class="about">
		<!-- <view class="flex">
			<image :src="host+info.pic" class="head"></image>
			<text>{{info.title}}</text>
		</view> -->
		<view class="content">
			<rich-text  :nodes="info.content|formatRichText"></rich-text>
		</view>
	</view>
</template>

<script>
	import fetch from '@/common/fetch.js'
	export default{
		data(){
			return{
				info:{}
			}
		},
		computed:{
			host(){
				return fetch.interfaceUrl()
			}
		},
		mounted() {
			fetch.request('/index/mobile/aboutus','','GET').then(res=>{
				this.info = res.data
			})
		}
	}
</script>

<style lang="less" scoped>
	.flex{
		display: flex;
		align-items: center;
		flex-direction: column;
		justify-content: center;
		padding: 30rpx;
	}
	.about{
		padding: 40rpx 20rpx; 
		font-size: 14px;
		.head{
			width: 120rpx;
			height: 120rpx;
			border-radius: 50%;
			margin-bottom: 20rpx;
			background: #a4a4a4;
		}
	}
	.content{
		padding: 30rpx;
		box-sizing: border-box;
		border: 10rpx;
		background: #fff;
		color: #91a1aa;
		img{
			max-width: 100%;
		}
	}
</style>
